export interface ListParams {
  page?: number;
  pageSize?: number;
  name?: string;
  idCard?: string;
  mobile?: string;
  begId?: number;
}

export interface ListData {
  id: number;
  companyId: number;
  elderlyId: number;
  name: string;
  mobile: string;
  relation: string;
  begId: number;
  begName: string;
  startDate: string;
  day: number;
  amount: number;
  addTime: string;
  addAccountId: number;
  addAccountName: string;
  elderlyName: string;
  elderlyPhoto: string;
  elderlyGender: string;
  elderlyIdCard: string;
  houseName: string;
  buildingName: string;
  files: null | string;
}

export interface ListResult {
  counts: number;
  pageSize: number;
  list: ListData[];
}

export interface fileData {
  id?: number;
  reservationId?: number;
  file: string;
}

export interface AddParams {
  elderlyId: number;
  name: string;
  mobile: string;
  relation: string;
  begId: number;
  startDate: string;
  day: number | null;
  amount: number | null;
  files: fileData[];
}

export interface AddResult {
  id: number;
  companyId: number;
  elderlyId: number;
  name: string;
  mobile: string;
  relation: string;
  begId: number;
  startData: string;
  day: number;
  amount: number;
  addTime: string;
  addAccountId: number;
  addAccountName: string | null;
  elderlyName: string | null;
  elderlyPhoto: string | null;
  elderlyGender: string | null;
  elderlyIdCard: string | null;
  houseName: string | null;
  buildingName: string | null;
  files: fileData[];
}
